package cn.zyy.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Score {

  private long scoreId;
  private long stuId;
  private long courseId;
  private double score;

  //额外属性
  private String stuName;
  private String courseName;

  @Override
  public String toString() {
    return "科目：" + courseName + "\t姓名：" + stuName + "\t分数：" + score;
  }
}
